package com.easylinkin.linkappapi.rulecomponent.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.easylinkin.linkappapi.device.entity.Device;
import com.easylinkin.linkappapi.powerdistribution.entity.DistributionCabinet;
import com.easylinkin.linkappapi.space.entity.LinkappArea;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 配电房
 * </p>
 *
 * @author TongJie
 * @since 2020-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkapp_rule_component_attribute")
public class RuleComponentAttribute extends Model<RuleComponentAttribute> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("id")
    private String id;
    
    @TableId("rule_component_id")
    private String ruleComponentId;

    /**
     * 名称
     */
    @TableField("device_attribute_id")
    private String deviceAttributeId;

    
    @TableField(exist=false)
    private String deviceAttributeName;
    
    @TableField(exist=false)
    private String identifier;
    
    /**
     * 区域id
     */
    @TableField("device_attribute_parent_id")
    private String deviceAttributeParentId;
    
    @TableField(exist=false)
    private String deviceAttributeParentName;

    /**
     * 描述
     */
    @TableField("calculate_sign")
    private String calculateSign;
    
    @TableField("expression")
    private String expression;
    
    @TableField("value")
    private String value;

    @TableField("sort_no")
    private Integer sortNo;
    
    @TableField("logic_code")
    private String logicCode;
    
    
    @TableField("unit")
    private String unit;
    
    @TableField("specs")
    private String specs;
    
    /**
     * 租户id
     */
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 创建人id
     */
    @TableField("creator")
    private String creator;

    /**
     * 修改人id
     */
    @TableField("modifier")
    private String modifier;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
